Optimal. Leaf size=67 \[ -\frac {\cosh \left (a+b x^2\right )}{2 b}+\frac {\cosh ^3\left (a+b x^2\right )}{2 b}-\frac {3 \cosh ^5\left (a+b x^2\right )}{10 b}+\frac {\cosh ^7\left (a+b x^2\right )}{14 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {5428, 2713}
\begin {gather*} \frac {\cosh ^7\left (a+b x^2\right )}{14 b}-\frac {3 \cosh ^5\left (a+b x^2\right )}{10 b}+\frac {\cosh ^3\left (a+b x^2\right )}{2 b}-\frac {\cosh \left (a+b x^2\right )}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2713
Rule 5428
Rubi steps
\begin {align*} \int x \sinh ^7\left (a+b x^2\right ) \, dx &=\frac {1}{2} \text {Subst}\left (\int \sinh ^7(a+b x) \, dx,x,x^2\right )\\ &=-\frac {\text {Subst}\left (\int \left (1-3 x^2+3 x^4-x^6\right ) \, dx,x,\cosh \left (a+b x^2\right )\right )}{2 b}\\ &=-\frac {\cosh \left (a+b x^2\right )}{2 b}+\frac {\cosh ^3\left (a+b x^2\right )}{2 b}-\frac {3 \cosh ^5\left (a+b x^2\right )}{10 b}+\frac {\cosh ^7\left (a+b x^2\right )}{14 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 67, normalized size = 1.00 \begin {gather*} -\frac {35 \cosh \left (a+b x^2\right )}{128 b}+\frac {7 \cosh \left (3 \left (a+b x^2\right )\right )}{128 b}-\frac {7 \cosh \left (5 \left (a+b x^2\right )\right )}{640 b}+\frac {\cosh \left (7 \left (a+b x^2\right )\right )}{896 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.50, size = 63, normalized size = 0.94
method | result | size |
default | \(-\frac {35 \cosh \left (x^{2} b +a \right )}{128 b}+\frac {7 \cosh \left (3 x^{2} b +3 a \right )}{128 b}-\frac {7 \cosh \left (5 x^{2} b +5 a \right )}{640 b}+\frac {\cosh \left (7 x^{2} b +7 a \right )}{896 b}\) | \(63\) |
risch | \(\frac {{\mathrm e}^{7 x^{2} b +7 a}}{1792 b}-\frac {7 \,{\mathrm e}^{5 x^{2} b +5 a}}{1280 b}+\frac {7 \,{\mathrm e}^{3 x^{2} b +3 a}}{256 b}-\frac {35 \,{\mathrm e}^{x^{2} b +a}}{256 b}-\frac {35 \,{\mathrm e}^{-x^{2} b -a}}{256 b}+\frac {7 \,{\mathrm e}^{-3 x^{2} b -3 a}}{256 b}-\frac {7 \,{\mathrm e}^{-5 x^{2} b -5 a}}{1280 b}+\frac {{\mathrm e}^{-7 x^{2} b -7 a}}{1792 b}\) | \(127\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 126 vs.
\(2 (59) = 118\).
time = 0.27, size = 126, normalized size = 1.88 \begin {gather*} \frac {e^{\left (7 \, b x^{2} + 7 \, a\right )}}{1792 \, b} - \frac {7 \, e^{\left (5 \, b x^{2} + 5 \, a\right )}}{1280 \, b} + \frac {7 \, e^{\left (3 \, b x^{2} + 3 \, a\right )}}{256 \, b} - \frac {35 \, e^{\left (b x^{2} + a\right )}}{256 \, b} - \frac {35 \, e^{\left (-b x^{2} - a\right )}}{256 \, b} + \frac {7 \, e^{\left (-3 \, b x^{2} - 3 \, a\right )}}{256 \, b} - \frac {7 \, e^{\left (-5 \, b x^{2} - 5 \, a\right )}}{1280 \, b} + \frac {e^{\left (-7 \, b x^{2} - 7 \, a\right )}}{1792 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 154 vs.
\(2 (59) = 118\).
time = 0.42, size = 154, normalized size = 2.30 \begin {gather*} \frac {5 \, \cosh \left (b x^{2} + a\right )^{7} + 35 \, \cosh \left (b x^{2} + a\right ) \sinh \left (b x^{2} + a\right )^{6} - 49 \, \cosh \left (b x^{2} + a\right )^{5} + 35 \, {\left (5 \, \cosh \left (b x^{2} + a\right )^{3} - 7 \, \cosh \left (b x^{2} + a\right )\right )} \sinh \left (b x^{2} + a\right )^{4} + 245 \, \cosh \left (b x^{2} + a\right )^{3} + 35 \, {\left (3 \, \cosh \left (b x^{2} + a\right )^{5} - 14 \, \cosh \left (b x^{2} + a\right )^{3} + 21 \, \cosh \left (b x^{2} + a\right )\right )} \sinh \left (b x^{2} + a\right )^{2} - 1225 \, \cosh \left (b x^{2} + a\right )}{4480 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.90, size = 94, normalized size = 1.40 \begin {gather*} \begin {cases} \frac {\sinh ^{6}{\left (a + b x^{2} \right )} \cosh {\left (a + b x^{2} \right )}}{2 b} - \frac {\sinh ^{4}{\left (a + b x^{2} \right )} \cosh ^{3}{\left (a + b x^{2} \right )}}{b} + \frac {4 \sinh ^{2}{\left (a + b x^{2} \right )} \cosh ^{5}{\left (a + b x^{2} \right )}}{5 b} - \frac {8 \cosh ^{7}{\left (a + b x^{2} \right )}}{35 b} & \text {for}\: b \neq 0 \\\frac {x^{2} \sinh ^{7}{\left (a \right )}}{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 108, normalized size = 1.61 \begin {gather*} -\frac {{\left (1225 \, e^{\left (6 \, b x^{2} + 6 \, a\right )} - 245 \, e^{\left (4 \, b x^{2} + 4 \, a\right )} + 49 \, e^{\left (2 \, b x^{2} + 2 \, a\right )} - 5\right )} e^{\left (-7 \, b x^{2} - 7 \, a\right )} - 5 \, e^{\left (7 \, b x^{2} + 7 \, a\right )} + 49 \, e^{\left (5 \, b x^{2} + 5 \, a\right )} - 245 \, e^{\left (3 \, b x^{2} + 3 \, a\right )} + 1225 \, e^{\left (b x^{2} + a\right )}}{8960 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.47, size = 52, normalized size = 0.78 \begin {gather*} -\frac {-5\,{\mathrm {cosh}\left (b\,x^2+a\right )}^7+21\,{\mathrm {cosh}\left (b\,x^2+a\right )}^5-35\,{\mathrm {cosh}\left (b\,x^2+a\right )}^3+35\,\mathrm {cosh}\left (b\,x^2+a\right )}{70\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________